<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Eretsprotection</title>
<link href="css/mainstyle.css" rel="stylesheet" type="text/css"  />
<link href="css/style_footer.css" rel="stylesheet" type="text/css"  />
<link href="css/style_header.css" rel="stylesheet" type="text/css"  />
<link href="css/style_left.css" rel="stylesheet" type="text/css"  />
<link href="css/style_home.css" rel="stylesheet" type="text/css"  />
<link href="css/style_contact.css" rel="stylesheet" type="text/css"  />
<link href="css/style_product.css" rel="stylesheet" type="text/css"  />
<link href="css/style_serrureries.css" rel="stylesheet" type="text/css"  />
<link href="css/category_menu.css" rel="stylesheet" type="text/css"  />

<?php
	require_once("includes/initialize.php");
	openConnection();
?>
<!--search cat-->
<script language="JavaScript" src="js/script.js"></script>
<!--Video box -->
<link rel="stylesheet" href="css/jqvideobox.css" type="text/css" /> 

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/jqvideobox.js"></script>
<script>
	$(document).ready(
		function()
		{
			$(".vidbox").jqvideobox();
		}
	);
	</script>
<!--Video box -->

<!--Contact Form Validate -->
<script src="js/js_contact_form/1jquery.js" type="text/javascript"></script>
<script src="js/js_contact_form/validate.min.js" type="text/javascript"></script>
<script src="js/js_contact_form/init.js" type="text/javascript"></script>
<!--Contact Form Validate -->

<!--Slide -->
<script src="http://code.createjs.com/easeljs-0.5.0.min.js"></script>
<script src="http://code.createjs.com/tweenjs-0.3.0.min.js"></script>
<script src="http://code.createjs.com/movieclip-0.5.0.min.js"></script>
<script src="http://code.createjs.com/preloadjs-0.2.0.min.js"></script>
<script src="js/js_slides/10_bann_protecdoor.js"></script>

<script>
var canvas, stage, exportRoot;

function init() {
	canvas = document.getElementById("canvas");
	images = images||{};

	var manifest = [
		{src:"images/images_slide/flch_1.png", id:"flch_1"},
		{src:"images/images_slide/flch_2.png", id:"flch_2"},
		{src:"images/images_slide/flch_3.png", id:"flch_3"},
		{src:"images/images_slide/fond.jpg", id:"fond"},
		{src:"images/images_slide/fond2.jpg", id:"fond2"},
		{src:"images/images_slide/fond2_1.jpg", id:"fond2_1"}
	];

	var loader = new createjs.PreloadJS(false);
	loader.onFileLoad = handleFileLoad;
	loader.onComplete = handleComplete;
	loader.loadManifest(manifest);
}

function handleFileLoad(o) {
	if (o.type == "image") { images[o.id] = o.result; }
}

function handleComplete() {
	exportRoot = new lib._10_bann_protecdoor();

	stage = new createjs.Stage(canvas);
	stage.addChild(exportRoot);
	stage.update();

	createjs.Ticker.setFPS(24);
	createjs.Ticker.addListener(stage);
}
</script>
<!--Slide -->

<!--disable save image -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jctextcopyprotector.js"></script>

<!--end disable -->
</head>

<body onload="init();" >
    <div align="center">
        <div class="container" align="left">
            <div class="header">
               <?php 
                            if(isset($_REQUEST['page']) && $_REQUEST['page'] != ''){
                                if(file_exists("mainpage/".$_REQUEST['page'].".php")){
                                    $showPage = $_REQUEST['page'].".php";
                                }else{
                                    $showPage = "home.php";
                                }
                            }else{
                                $showPage = "home.php";
                            }
                            switch ($showPage) {
                                  case "home.php":
                                       $home="current";
                                       @$product="";
                                       @$serrureries="";
                                       @$contact="";
                                       break;
                                  case "product.php":
                                       @$home="";
                                       $product="current";
                                       @$serrureries="";
                                       @$contact="";
                                       break;
                                  case "serrureries.php":
                                       @$home="";
                                       @$product="";
                                       $serrureries="current";
                                       @$contact="";
                                       break;
                                  case "contact.php":
                                       @$home="";
                                       @$product="";
                                       @$serrureries="";
                                       $contact="current";
                                       break;
                            }
                        ?>
                     <?php 
                        require_once('include_layout/header.php');
                     ?>
            </div><!--end heander --->
            <div class="clear"></div>
            <div class="wrapper">
                <div class="sidebar_left">
                    <?php 
                        require_once('include_layout/left.php');
                    ?>
                </div>
                <div class="wrapper_right">          	
                        <?php 
                            include("mainpage/".$showPage);
                        ?>
                </div>
                
            </div>
        </div>
        <div class="footer">
                <?php 
                    require_once('include_layout/footer.php');
                ?>
        </div>
    </div>
    <script type="text/javascript">
       jQuery(document).ready(function(){
           jQuery().jctextcopyprotector();
       });     
            
       </script>
</body>
</html>
<?php
	closeConnection();
?>